<?php
global $glossary;
global $iscontrol;

$user = Utils::getUserBySerial($glossary['creator']);
$glossary['creator'] = $user['nickname'] == ""?$user['id']:$user['nickname'];
?>
<div id="tool-bar">
	<ul class="meta">
		<li><strong><?=$glossary['term_num']?></strong>Terms</li>
		<li class="last">Owned by<strong><?=$glossary['creator']?></strong></li>
	</ul>
	<?php if($iscontrol) {?>
	<ul class="piece">
		<li><a href="<?=REQUEST_BASE?>glossary/<?=$glossary['serial']?>/addterms_modes/" class="button">Add terms</a></li>
		<li><a href="<?=REQUEST_BASE?>glossary/<?=$glossary['serial']?>/details/" class="button">Details</a></li>
		<li>
			<a href="#" class="button" onclick="glossary.delete_glossary(<?=$glossary['serial']?>, '<?=$glossary['title']?>');return false;">Delelte</a>
		</li>
	</ul>
	<?php } ?>
	<div class="clear"></div>
</div>